package com.edu.hre.struts.form.pim;

import java.util.Date;

import org.apache.struts.action.ActionForm;

import com.edu.hre.common.utils.CommonUtils;

public class EmpEducationForm extends ActionForm {

	/**
	 * 
	 */
	private static final long serialVersionUID = 6056273106708257020L;
	private int id;
	private int empNumber;
    private String level;
    private String institute;
    private String major;
    private String year;
    private String score;
    private Date startDate;
    private Date endDate;
    
    private boolean isSelected = false;

	public boolean isSelected() {
		return isSelected;
	}

	public void setSelected(boolean isSelected) {
		this.isSelected = isSelected;
	}
	
	public boolean getIsSelected() {
		return isSelected;
	}

	public void setIsSelected(boolean isSelected) {
		this.isSelected = isSelected;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getEmpNumber() {
		return empNumber;
	}

	public void setEmpNumber(int empNumber) {
		this.empNumber = empNumber;
	}

	public String getLevel() {
		return level;
	}

	public void setLevel(String level) {
		this.level = level;
	}

	public String getYear() {
		return year;
	}

	public void setYear(String year) {
		this.year = year;
	}

	public String getScore() {
		return score;
	}

	public void setScore(String score) {
		this.score = score;
	}

	public String getStartDate() {
		return CommonUtils.dateToString(startDate);
	}

	public void setStartDate(String startDate) {
		this.startDate = CommonUtils.stringToDate(startDate);
	}

	public String getEndDate() {
		return CommonUtils.dateToString(endDate);
	}

	public void setEndDate(String endDate) {
		this.endDate = CommonUtils.stringToDate(endDate);
	}

	public String getMajor() {
		return major;
	}

	public void setMajor(String major) {
		this.major = major;
	}

	public String getInstitute() {
		return institute;
	}

	public void setInstitute(String institute) {
		this.institute = institute;
	}
}
